package com.zaizai.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zaizai.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 商品日期单价对象 commodity_price
 *
 * @author zaiZai
 * @date 2024-10-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
public class CommodityPrice extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 商品id
     */

    private Long commodityId;

    /**
     * 商品价格
     */

    private Long price;

    /**
     * 日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date time;

}
